package cn.xiaobai.domain;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.io.Serializable;

/**
 * @Author yangdaji
 * @Date 2024/2/17
 * @PackageName cn.xiaobai
 * @ClassName User
 */
@Table("user")
public class User implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Integer id;


    private String name;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
